ErrorLevel("off")
if (ProcExists("MainPage.exe"))
	SetChoiceEntryFormat(31, 20, "Arial")
	ChoiceDefault("Power Options", " ", 4, 0, "Eteindre l'écran", "Accéder à Windows", "Redémarrer le GPS", "Eteindre le GPS")
	case 1
	Run("\DiskOnChip\Apps\ScreenOff.exe")
	case 2
	Kill("MainPage.exe")
	case 3
	Reset
	case 4
	poweroff
	EndChoice
Else
	SetChoiceEntryFormat(31, 20, "Arial")
	ChoiceDefault("Power Options", " ", 3, 0, "Eteindre l'écran", "Redémarrer le GPS", "Eteindre le GPS")
	case 1
	Run("\DiskOnChip\Apps\ScreenOff.exe")
	case 2
	Reset
	case 4
	poweroff
	EndChoice
EndIf
Exit




